import request from '@/api/http.js'

//获取质检指标列表
export const getQualityDetectionIndicatorList = (params) => {
    console.log('changeWorkStatus发送参数:', params)
    const query = new URLSearchParams(params).toString();
    return request.get(`api/QualityDetection/GetQualityDetectionIndicatorList?${query}`)
}

// 新增质检指标
export const addQualityDetectionIndicator = (params) => {
    return request.post('api/QualityDetection/AddQualityDetectionIndicator',params)
}

// 编辑质检指标
export const updateQualityDetectionIndicator = (params) => {
    return request.post('api/QualityDetection/UpdateQualityDetectionIndicator',params)
}

// 删除质检指标
export const deleteQualityDetectionIndicator = (params) => {
    return request.post(`api/QualityDetection/DeleteQualityDetectionIndicator/${params.id}`)
}
